package cn.cool.controller;


import cn.cool.service.UserLikeArticleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author LiuH
 * @since 2021-01-23
 */
@RestController
@RequestMapping("/userLikeArticle")
@Api(tags = "用户点赞文章接口")
public class UserLikeArticleController {

    @Autowired
    private UserLikeArticleService userLikeArticleService;

    @PostMapping("/setUserLike")
    @ApiOperation(value = "用户点赞")
    public void setUserLike(HttpServletRequest request,Integer artId){
        userLikeArticleService.setUserLike(request,artId);
    }


}

